function! bootstrap#pathogen#setup() abort
    if exists('g:loaded_pathogen')
        let g:spacevim_bundle_dir = g:spacevim_data_dir . 'vimfiles/repos/github.com/'
        let g:pathogen_directory = g:spacevim_bundle_dir . 'tpope/vim-pathogen/'
        if filereadable(g:pathogen_directory . 'autoload/pathogen.vim') 
            call pathogen#infect(g:spacevim_bundle_dir . '{}/{}')
        endif
    endif
endfunction
